<?php
/**
 * Created by PhpStorm.
 * User: Admin
 * Date: 2020-08-01
 * Time: 下午 08:38
 */
namespace Action;

use Action\Common\BaseLayout;
use Action\Page\View;

/**
 * Class Index
 * @package Action
 * 
 * @property-read \Lib\Config $config
 * @property-read \Model\Upload $upload
 */
class Upload extends BaseLayout {
    public $data;

    /**
     * action 入口文件
     */
    public function main() {
        if($_REQUEST['type'] == 'image') {
            $this->upload->saveImage($_FILES['file']);
        }
    }
}
